#import <Foundation/Foundation.h>

@interface SampleClass : NSObject
-(int) max: (int)num1 andNum2: (int)num2;

@end

@implementation SampleClass
-(int) max: (int)num1 andNum2: (int)num2 {
  int result;
  if (num1 >= num2) {
    result = num1;
  } else {
    result = num2;
  }

  return result;
}
@end

int main()
{
  NSAutoreleasePool *pool;
  pool = [[NSAutoreleasePool alloc] init];
  // write code below
  SampleClass *sample = [[SampleClass alloc] init];
  int ret = [sample max:1 andNum2:2];
  NSLog(@"Max value is: %d\n", ret);


  // don't write code now
  RELEASE(pool);
  return 0;
}

